﻿using Prism.Commands;
using Prism.Events;
using Prism.Mvvm;
using Prism.Navigation.Regions;
using RoboAssembleX.Application.Common;
using RoboAssembleX.Application.Robot;
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RoboAssembleX.ViewModels
{
    public class ViewMainViewModel : BindableBase
    {
        private readonly IRegionManager regionManager;

        public ViewMainViewModel(IRegionManager regionManager, RoboService roboService, RoboModel roboModel)
        {
            this.regionManager = regionManager;
            Init();
        }
        

        private void Init()
        {
            regionManager.RegisterViewWithRegion("ViewRoboControlRegion", "ViewRoboControl");
            regionManager.RegisterViewWithRegion("ViewAddGlass1ControlRegion", "ViewAddGlass1Control");
            regionManager.RegisterViewWithRegion("ViewAddBoard1ControlRegion", "ViewAddBoard1Control");
            regionManager.RegisterViewWithRegion("ViewAddBoard2ControlRegion", "ViewAddBoard2Control");
            regionManager.RegisterViewWithRegion("ViewAddNeedle1ControlRegion", "ViewAddNeedle1Control");
            regionManager.RegisterViewWithRegion("ViewAddNeedle2ControlRegion", "ViewAddNeedle2Control");
            regionManager.RegisterViewWithRegion("ViewMessageShowRegion", "ViewMessageShow");
            regionManager.RegisterViewWithRegion("ViewAutoRunControlRegion", "ViewAutoRunControl");
        }

    }
}
